<template>
  <el-dialog title="提示" :visible.sync="dialogVisible" :show-close="false" :modal="false" width="287px"
    class="edit-dialog" :before-close="handleClose">
    <div class="record-edit-content">
      <span>是否确定提交？</span>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="handleClose">取 消</el-button>
      <el-button size="small" type="primary" @click="handleSubmit">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
// import D2Badge from './components/d2-badge'
import { request } from '@/api/_service.js'

export default {
  components: {

  },
  props: {
    rowId: {
      type: String,
      default: ''
    },
    dialogVisibles: {
      type: Boolean,
      default: false
    },
  },
  data() {
    return {
      detailsData: {
        content: [],
        images: []

      },
      dialogVisible: false,
    }
  },
  created() {
    this.dialogVisible = this.dialogVisibles
  },
  mounted() {
    // console.log(this, 'dialogVisibledialogVisible')
  },
  beforeDestroy() {
    // clearInterval(this.timeInterval)
  },
  methods: {
    
    handleClose() {
      this.$emit('update', false)
      this.dialogVisible = false
    },
    handleSubmit(){
      this.$emit('update', true)
      this.dialogVisible = false
    }
  }
}
</script>

<style lang="scss" scoped>
.edit-dialog {
  &::v-deep .el-dialog {
    box-shadow: 0px 0px 20px 0px #D2DAE4;
    border-radius: 20px;
    .el-dialog__header{
      text-align: center;
      font-weight: bold;
      color: #828592 ;
    }
  }

}

.record-edit-content {
  display: flex;
  justify-content: center;
}

.el-button {
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 10px;
}

.dialog-footer {
  display: flex;
  justify-content: center;
}
</style>
